-- GENERATED SPELL FOR [Old Cliff Jumper] --


function spell0_8211(pUnit, Event) --@Blood Howl,Self--
pUnit:FullCastSpellOnTarget(3264,pUnit)
pUnit:RegisterEvent('Sorts_8211', 16000, 1)
end

function spell1_8211(pUnit, Event) --@Tendon Rip,n/a--
pUnit:FullCastSpellOnTarget(3604,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_8211', 8000, 1)
end

function Sorts_8211(pUnit, Event)
local choix_sorts_8211 = math.random(0, 1)
if choix_sorts_8211 == 0 then
pUnit:RegisterEvent('spell0_8211', 1, 1)
end
if choix_sorts_8211 == 1 then
pUnit:RegisterEvent('spell1_8211', 1, 1)
end
end

function mob8211_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_8211', math.random(1500, 3000), 1)
end

function mob8211_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob8211_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob8211_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(8211, 1, 'mob8211_Action')
RegisterUnitEvent(8211, 2, 'mob8211_Leave')
RegisterUnitEvent(8211, 3, 'mob8211_Kill')
RegisterUnitEvent(8211, 4, 'mob8211_Die')
